package com.yoooya.base.third.model.vo.cp;


import com.yoooya.base.third.utils.json.cp.WxCpGsonBuilder;

import java.io.Serializable;

/**
 * 微信部门
 * 
 * @创建人 Sun Yijing
 * @创建时间 2018-07-08
 */
public class WxCpDepart implements Serializable {

	private Integer id;
	private String name;
	private Integer parentId;
	private Integer order;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public static WxCpDepart fromJson(String json) {
		return WxCpGsonBuilder.create().fromJson(json, WxCpDepart.class);
	}

	public String toJson() {
		return WxCpGsonBuilder.create().toJson(this);
	}

	@Override
	public String toString() {
		return "WxCpDepart{" + "id=" + id + ", name='" + name + '\''
				+ ", parentId=" + parentId + ", order=" + order + '}';
	}
}
